<template>
  <div id="app">
    <Pagination :total="total" :current.sync="current" :page-size="pageSize" @change-current="changeCurrent" />
  </div>
</template>

<script>
import Pagination from '@/components/Pagination'
export default {
  name: 'App',
  components: {
    Pagination
  },
  data() {
    return {
      total: 100,
      pageSize: 10,
      current: 2
    }
  },

  methods: {
    changeCurrent(n) {
      console.log(n)
    }
  }
}
</script>
